package cn.xianshu.org.domain;

import cn.xianshu.basic.domain.BasicDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data // 自动生成  get，set tostring;
public class Department extends BasicDomain {
    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;

    private Employee employee;
    private Department parent;

    public void setSn(String sn){
        this.sn = sn.trim();
    }

    public void setName(String name){
        this.name = name.trim();
    }

    private List<Department> children = new ArrayList<>();
}
